using System;
using System.Data;

using OgilvyOne.Model;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;

namespace OgilvyOne.BLL
{
    public class BECard
    {
        // Methods
        public bool DeleteByIdentity(int CardID)
        {
            return CreateInstance.CreateECard().DeleteByIdentity(CardID);
        }

        public MECard GetRowByIdentity(int CardID)
        {
            return CreateInstance.CreateECard().GetRowByIdentity(CardID);
        }

        public DataSet GetRows(string condition)
        {
            return CreateInstance.CreateECard().GetRows(condition);
        }

        public int Insert(MECard data)
        {
            return CreateInstance.CreateECard().Insert(data);
        }

        public bool ModifyByIdentity(MECard data)
        {
            return CreateInstance.CreateECard().ModifyByIdentity(data);
        }

        public void MyCommon(string strTmp)
        {
            CreateInstance.CreateECard().MyCommon(strTmp);
        }

    }
}
